<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" import="java.util.Calendar" %>
<%
    Calendar cal = Calendar.getInstance();
    int year = cal.get(Calendar.YEAR); //获取年份
%>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>lucene文件检索</title>
    <link type="text/css" rel="stylesheet" href="css/index.css">
</head>
<body>
<div class="indexbox">
    <div class="logo">
        <a href="index.jsp">
            <img alt="文件检索" src="images/logo.png">
        </a>
    </div>
    <div class="searchform">
        <form action="SearchFile" method="get" class="searchfile">
            <input type="text" name="query">
            <input type="submit" value="搜索">
        </form>
        <form action="UpdateIndex" method="post" class="updateindex">
            <input type="submit" value="更新索引">
        </form>
    </div>
    <div class="info">
        <p>基于Lucene的文件检索系统</p>
        <br/>
        <p>&copy;<%=year > 2016 ? (2016 + "-" + year) : year%> 清华大学出版社 All rights Reserved</p>
    </div>
</div>
</body>
</html>
